#pragma once

#include "RePost.h"
#include "QuotePost.h"

#include <time.h>
#include <string>
using std::string;
using std::wstring;

class PostConvertor
{
public:
	PostConvertor(void);
	virtual ~PostConvertor(void);

	RePost operator() (const QuotePost &quotePost, bool &result)
	{
		return Quote2Re(quotePost, result);
	}

private:
	static RePost Quote2Re(const QuotePost &quotePost, bool &result);
	static wstring formatTime(const time_t postTime);
	static wstring genFromTencentSubFix(const time_t postTime);
};